package com.lyj.mode.single;

/**
 * 静态内部类
 * @author:liyajie
 * @createTime:2022/2/10 15:50
 * @version:1.0
 */
public class Singleton7 {
    // 私有化构造方法
    private Singleton7(){}

    // 内部类
    private static class SingleInstance{
        public static final Singleton7 singleton7 = new Singleton7();
    }

    // 对外提供公共方法
    public static Singleton7 getSingleton7(){
        return SingleInstance.singleton7;
    }
}
